import axios from "axios";

const http = axios.create({
    // baseURL: 'https://www.jianshu.com/asimov',
});

const Request = {
    get(url, params) {
      return http({
        url: url,
        params: params,
        method: 'GET',
        headers: {},
      });
    },
    post(url, data) {
      return http.post(url, data, { headers: {} });
    },
    delete(url) {
      return http.delete(url, { headers: {} });
    },
};

export default Request;